package tests;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import packageServer.Carnivoro;

public class TestCarnivoro {

	private Carnivoro c;
	
	@Before
	public void setUp() throws Exception {
		c=new Carnivoro(0);
	}

	@After
	public void tearDown() throws Exception {
		c=null;
	}

	@Test
	public void testCalcolaForza() {
		assertEquals(2*c.getDimensione()*c.getEnergia(), c.calcolaForza());
	}

	@Test
	public void testCarnivoro() {
		assertNotNull(c);
	}

}
